#ifndef _IO_INTERFACE_H_
#define _IO_INTERFACE_H_

#include "pic_serial.h";

void initialize_io();
uint8_t handle_io();

/* exported by picpack */
extern void usb_handle_isr();

inline void handle_io_interrupts() {
#ifndef SIMULATOR
    usb_handle_isr();
#else
    serial_handle_tx_isr();
    serial_handle_rx_isr();
#endif
}


#endif
